package com.community.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.community.dao.PersonnelDao;
import com.community.entity.Home;
import com.community.entity.Personnel;
import com.community.service.PersonnelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Personnel)表服务实现类
 *
 * @author makejava
 * @since 2021-10-05 11:16:37
 */
@Service("personnelService")
public class PersonnelServiceImpl extends ServiceImpl<PersonnelDao, Personnel> implements PersonnelService {
    @Resource
    PersonnelDao personnelDao;

    public Integer selectCount(String region) {
        return personnelDao.selectCount(region);
    }

    @Override
    public IPage<Home> selectAll(IPage<Personnel> page, Wrapper<Personnel> queryWrapper) {
        return personnelDao.selectAll(page, queryWrapper);
    }
}

